home *** CD-ROM | disk | FTP | other *** search
- /**********************************************/
- /* Listing 1. */
- /* */
- /* Header file for writing BIOS Fonts on any */
- /* byte boundry. */
- /* Borland C++ Compiler. */
- /* */
- /* (c)copyright 1991, Michael Chapin */
- /**********************************************/
-
- #define BF8x8 0
- #define BF8x14 1
- #define BF8x16 2
-
- typedef enum {FALSE, TRUE} BOOL;
-
- typedef struct{
- unsigned Color;
- unsigned Width;
- unsigned Height;
- void far *FontPtr;
- }BFont;
-
- void SetBFonts();
- /* sets up fonts */
-
- void SetBFColor(unsigned Which, unsigned Color);
-
- char GetBFColor(unsigned Which);
- /* Returns the current color for "Which" font */
-
- void SetBFFont(unsigned Which);
- /* Sets the current font that will be written */
-
- void PrintBFAt(unsigned x, unsigned y, char *Msg);
- /*
- Prints a font at x, y without changing the font
- pointer.
- */
-
- void EGABlock(unsigned x, unsigned y,
- unsigned width, unsigned height,
- unsigned c);
- /*
- Puts a solid block of color on the screen. x, y
- is the upper left hang point of the box. width is
- the pixel width of the box, height is the number of
- lines high.
- */